<!DOCTYPE html>
<html>
  <head  lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>发票详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no" />
    <meta content="email=no" name="format-detection" />
    <script src="<{$template_dir}>admin/js/jquery-1.7.2.js"></script>
  <link href="<{$template_dir}>admin/com_ticket/css/main.css" rel="stylesheet"></head>
  <body class='bg-gay'>
      <div class='warp_detail'>
        <div class='main_detail'>
          <h2 class='tit'><span>增值税电子普通发票</span></h2>
          <div class='top_detail'>
            <p class='clearfix'>
              <span class='lf'>付款方</span>
              <span class='lr bd'><{$ticket.price}></span>
            </p>
            <p class='clearfix'>
              <span class='lf'>销售方</span>
              <span class='lr'><{$ticket.business_name}></span>
            </p>
          </div>
          <div class='mid_detail'>
            <p class='clearfix'>
              <span class='lf'>发票代码</span>
              <span class='lr'><{$data.invoiceCode}></span>
            </p>
            <p class='clearfix'>
              <span class='lf'>发票号码</span>
              <span class='lr'><{$data.invoiceNo}></span>
            </p>
          </div>
          <div class='bottom_detail'>
            <p class='clearfix'>
              <span class='lf'>开票时间</span>
              <span class='lr'><{$data.issueDate}></span>
            </p>
            <p class='clearfix'>
              <span class='lf'>发票金融</span>
              <span class='lr bd'>&yen;<{$ticket.price}></span>
            </p>
          </div>
          
        </div>
      </div>
      
    
      <{foreach  item=v from=$data.imageFiles}>
      <div class='look'>
     	 <img src="<{$v.true_imageFiles}>">
      </div>
      <{/foreach}>
      
      
      <div class='look' style='margin-bottom: 17px;'><button onClick="location.href='<{$data.pdfFile}>'" type="button">下载电子发票</button></div>
  <script type="text/javascript" src="<{$template_dir}>admin/com_ticket/js/index.bundle.js"></script>
  
  <script>
  $(function(){
  	
  	
  	
  	<{if $data.code=='1111'}>
	  	parent.layer.open({
	  		
	  		content:"发票未开具！",
			icon: 5,
			yes: function(index, layero){
			  parent.layer.closeAll();
			},
			cancel: function(){ 
			  parent.layer.closeAll();
			}
	  		
	  	})
  	<{elseif $data.code=='2222'}>
  	
  	
	  	parent.layer.open({
	  		
	  		content:"发票开具中！",
			icon: 5,
			yes: function(index, layero){
			  parent.layer.closeAll();
			},
			cancel: function(){ 
			  parent.layer.closeAll();
			}
	  		
	  	})
  	
  	
  	<{/if}>
  })
  
  
  
  
  </script>
  
  </body>
</html>